Utils

object Utils

Provides utilities for creating and caching translation results

Author

fzzyhmstrs

Since

0.6.8

Properties

Link copied to clipboard

An empty translation result with null description, null prefix, and empty text name.

Functions

Link copied to clipboard

Caches the provided result and passes it through.

Link copied to clipboard
fun createResult(name: Text, desc: Text? = null, prefix: Text? = null): Translatable.Result

Creates a Full without caching it.

Link copied to clipboard
fun createScopedResult(scope: String, name: Text, desc: Text? = null, prefix: Text? = null): Translatable.Result

Creates a Full, caches it, and passes the newly created result through.

Link copied to clipboard

Retrieves a cached result, if any exists. If the cache has been invalidated this will return null